package org.tourism.service;

import org.tourism.entity.EmergencyInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wuling
 * @since 2024-07-05
 */
public interface EmergencyInfoService extends IService<EmergencyInfo> {
    //返回值为int类型的函数，返回1代表成功，0代表失败
    int insertEmergencyInfo(EmergencyInfo emergencyInfo);

    int updateEmergencyInfo(EmergencyInfo emergencyInfo);

    int deleteEmergencyInfo(int id);

    int deleteEmergencyInfoByEmergencyContent(String emergencyContent);

    EmergencyInfo selectEmergencyInfo(int id);

    int selectEmergencyInfoIdByEmergencyContent(String emergencyContent);

    List<EmergencyInfo> selectAllEmergencyInfo();
}
